package com.yuhang.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuhang.demo.entity.RoleEntity;
import com.yuhang.demo.exceptionHandler.MyException;
import org.springframework.transaction.annotation.Transactional;

/**
 * 
 *
 * @author yyh
 * @email yyh@demo.com
 * @date 2021-07-16 16:45:01
 */
public interface RoleService extends IService<RoleEntity> {

    @Transactional(rollbackFor = MyException.class)
    Integer saveRole(RoleEntity roleEntity);
}

